import navigationModule from "@/modules/navigation";
import buildNavigationTree from "@/utils/buildNavigationTree";

export default async function getContact() {
  const navigations = await navigationModule.get();
  if (!navigations) { return null; }
  return buildNavigationTree(navigations);
}
